package org.yu.api.register;

import net.minecraft.world.item.Item;
import net.minecraft.world.level.ItemLike;

import java.util.function.Supplier;

public record ItemHolder<T extends Item>(Supplier<T> item) implements Supplier<T>, ItemLike {

    @Override
    public T get() {
        return item.get();
    }

    @Override
    public Item asItem() {
        return item.get();
    }
}
